#ifndef INCLUDED_PLAYSTATE_H
#define	INCLUDED_PLAYSTATE_H
#include <SGE.h>
#include "GameState.h"
#include "IsometricMap.h"
#include "Character.h"
#include "Enemy.h"
class PlayState : public GameState
{
public:
	PlayState(GameContext& gameC);
	virtual ~PlayState();
	virtual void Load();
	virtual void Unload();
	virtual NextStates Update(float deltaTime);
	virtual void Render();
	void CheckCharAction(float deltaTime);
	void CheckEnemyAction(float deltaTime);
	void LoadInitialPositionCharacter();
	void LoadInitialPositionEnemy();
	void RenderChar();
	void RenderEnemy();
	void AttackCharacter();
	void AttackEnemy();
	void MoveCharacter();
	void MoveEnemy();
	void DrawDebug();
	void DrawText();
	bool CheckGameOver();

private:

	SGE_Sprite mPlayBG;

	SGE_Font mFont;
	SCircle mActive;
	//char and pos
	SVector2 mStorePos[4];
	Character mChar[4];
	//enemy and pos
	Enemy mEnemy[2];
	SVector2 mEnemyPos[2];
	IsometricMap mMap;
	SGE_Cursor mCursor;
	bool mActionChar;

};

#endif //INCLUDED_PLAYSTATE_H